/*
 * $Id: ProtoBase.cc,v 1.1 2005-05-02 11:14:47 bacon Exp $
 */

#include <xpp/net/ProtoBase.h>

namespace xpp
{
	namespace net
	{

		const xp_char_t* ProtoBase::errorStr () const
		{
			switch (p_errcode) {
			case ERR_NONE: 
				return XP_TEXT("no error");
			case ERR_RECEIVE:
				return XP_TEXT("receive error");
			case ERR_SEND:
				return XP_TEXT("send error");
			default:
				return XP_TEXT("unknown error");
			}
		}

	}
}
		
